package ModelLayer;

public class ProductLine {
	private int quantity;
	private double subPrice;
	
	private Product product;
	private SalesOrder order;
	
	//Constructor	
	public ProductLine(int quantity, double subPrice) {
		this.quantity = quantity;
		this.subPrice = subPrice;
		
		product = new Product();
		order = new SalesOrder();
	}

//Getters and Setters
	//Order
	public SalesOrder getOrder() {
		return order;
	}

	public void setOrder(SalesOrder order) {
		this.order = order;
	}

	//Quantity
	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	//Subprice
	public double getSubPrice() {
		return subPrice;
	}
	
	//Product
	public Product getProduct()
	{
		return product;
	}

	public void setProduct(Product theProduct)
	{
		product = theProduct;
	}
}
